<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@taglib
	uri="http://java.sun.com/jsf/core" prefix="f"%><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Escola de Idiomas: Matricular aluno em turma</title>
</head>
<body>
<f:view>
<h1>Escola de Idiomas: Matricular aluno em turma</h1>

<h2>Aluno</h2>
<p>Nome: <h:outputText value="#{matricula.aluno.nome}"></h:outputText></p>
<p>CPF: <h:outputText value="#{matricula.aluno.cpf}"></h:outputText></p>
<p>Nascimento: <h:outputText value="#{matricula.dataNascimentoAluno}"><f:convertDateTime /></h:outputText></p>

<h2>Turmas</h2>
<h:form>
	<h:messages></h:messages>
	<div>
	<h:selectOneRadio value="#{matricula.turma}">
		<f:selectItems value="#{matricula.turmas}"/>
	</h:selectOneRadio>
	</div>
	
	<h:commandButton value="Matricular" action="#{matricula.finalizar}"></h:commandButton>
</h:form>
</f:view>
</body>
</html>